small scripts in python and bash