implement relationship data and functions as attributes
fix python3 bug in test_brainwaresrcio (bug is only in the test, not the io class)