Data analysis scripts in python