Localization in near periodic structures