finished basic python port and generic test scripts, still need to separate tests fom code and comment python code.