added (quite evil) python support