update to python3 and tensorflow 2; code, api and ui cleanups