Add CUR_DIR to python snippets