updated joy.py to pep8 standards