create rotate.py

Main script.