python common utils