Analytic perturbation theory and localization phenomena