Made necessary modifications for Python3.3 support