Make sure to close the <key> tag to maintain valid XML.
Make sure to ignore compiled python files in .gitignore