updated to latest version from pycogent