convert R to python (import)