Fixed! There was a conflict in class names:
Statement() from statement.py and Statement() from constant.py.
Apparently, it never bothered python3, but it does give errors in python2.7.
A record seems to be added, so we can test further now.