api: fix typo in Python 2 path
api: py2 fix: str() only takes one argument