The two libraries I&#x27;ve created both use a combination of 3to2 and pasteurize to convert the python 3 code to python 2. 
The only issues I&#x27;ve run into are new error types that I could not use. 
But there seem to be quite some issues open: <a href="https:&#x2F;&#x2F;bitbucket.org&#x2F;amentajo&#x2F;lib3to2&#x2F;issues?status=new&amp;status=open" rel="nofollow">https:&#x2F;&#x2F;bitbucket.org&#x2F;amentajo&#x2F;lib3to2&#x2F;issues?status=new&amp;sta...</a><p>In case you want to see the scripts I use to change the python3 code to python 2 and make it work with pip:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;JelteF&#x2F;PyLaTeX&#x2F;blob&#x2F;master&#x2F;convert_to_py2.sh" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;JelteF&#x2F;PyLaTeX&#x2F;blob&#x2F;master&#x2F;convert_to_py2...</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;JelteF&#x2F;PyLaTeX&#x2F;blob&#x2F;master&#x2F;setup.py" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;JelteF&#x2F;PyLaTeX&#x2F;blob&#x2F;master&#x2F;setup.py</a>