fixed some syntax issues objects.py