added support for hashing objects; cleaned up pydict functionality and printing