Various api script updates.
Updates to stuff, and added setup.py