Compatibility fixes for Python3 support

I have also finished tweaking stars.py. This shows a ( slow ) 3d
starfield and works best with modified firmware.
Improved library with del/enter and exit methods