Python Context Import Function In R