python common useful tools