corrected error in restart switches- python will know restart correctly