fixed error on python

changed a few else if statements to elif. changed some variable names