Fixing some Python 3 errors
Fixing javascript compile error