add python magic encoding snippets