Fixes Python 3 errors, improves string representations