python common utils wrapper