pymode fix and remove special gui checks