refs #8381. More robust and flexible input checks

More robust and flexible input checks. Perform any conversion if possible. Give errors on python side if bad inputs provided. Refactor code to use getWorkspaceNames from both modules.