prepare add for moving to wp wrapper
prepare add for moving to wp wrapper

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

drougge/wellpapp-pyclient