Fixed spelling and renaming variable to fit pep