some utilities for easy testing of functions using python