Updated compatability of python and gui