Some useful Python scripts