Ported some GUI classes to Python