Also some updates to compile with latest changes to core py.
This compiles and links, but hasn't been tested on a board yet and even if it was run, it doesn't currently do anything.