Some useful python scripts