some python tunning