got fed up of hard-coded names, allow pywriter.py to take arguments