fixed some syntax errors in classes.py