Study of the heterogeneity and dynamics of polymers with single molecule spectroscopy door