Update usosapi.py

Compatibility with Python 3.3 fix.