Refactor to move generate datapoints script to generate.py