Refactor and document Uforia.py, fix curses output