prepare rotate for moving to wp wrapper
prepare rotate for moving to wp wrapper

still just moving code into main(), mostly to not completely break the
git history for this file.

drougge/wellpapp-pyclient