cleaned up make_pseudodata.py