implement tests for generate_datasets.py and fix bugs found by the tests
implement relationship data and functions as attributes
fix python3 bug in test_brainwaresrcio (bug is only in the test, not the io class)