Adcorrected pep erros and removed unused imports