useful scripts in python / bash