Relaxation and crystal nucleation in polymer glasses