error in python commands corrected