Code for generating test data (hopefully)

added testcodegeneratorcode.py, which should ([i]should[/i]) allow for
automatic generation of randomised test code.
feel free to make functional alterations or bugfix.