fixed a problem in prep.py where 1+z was trying to add a string