add some python support