Refs #7085 Patching code for the new python API.
Refs #7805 Fixed issues with bounds.