BUG: updated python mode snippets