Reorder nomials.py