add some python utils