renamed file, generate histogram data in python