Added some initial code for python embedding (forgot to add the files in the previous commit)