fixed problems with python3. Note: clld apps will not work under python 3 before webassets is ported.