Some functions for testing python code.  Includes adding some support for static typing.