python common tools