added rudimentary python support