Add partial rotate.py.
Add working rotate.py.