gmrun written in python