Moved python code to sub-directory, added c++ template.