some useful python scripts