Changed 'object' to 'entity' in Python and fixed tiny bug