Sanity check pyflow method calls

Any workflow methods called outside of the pyflow
task runtime will now raise an exception.

Added unit test to excersize the failure case.
update cl