Update objects.py

First beta version of the object system.