Updating pi branch with new python applications and some minor changes to some API methods