Reformatted morph.py