added MIT license snippets to C and python code