Fixed an issue preventing genc.py from running with Python 3 and got constants outputted as well. Functions now work reasonably well, I can't point to any issues off the top of my head.
reworked file structure and added necessary boilerplate to output code.