Compatibility to work with simplejson as json module
Importing with_statement from future and
making exceptions compatible with a compat.get_exception() function
Python 2.5 does not have class decorators
Fixing import
Python 2.5 does not have @prop.setter decorator
Change notify_all() to notifyAll() to work with Python 2.5
Add some imports to make it compatible with Python 2.5
Remove socket.create_connection to support Python 2.5
Add format and bytes to compat module