improved python 3 compatibility

corrected a few python methods in Tsai.py to improve python 3
compatibility and rebuilt the package (e.g. map function works
different, string module has no ljust etc.)