Advance Python3/Python2 coinstallability

These commits should fix most of the Python3 issues. 

However I cannot run any unit test as UCSC via MySQL is blocked at my institution, so I do not know if everything passes.