Python3 compatibility
Overhaul mac and win ui modules