make sure version is str in py2/py3