The Langevin and Fokker-Planck equations in the framework of a generalized statistical mechanics