python code in rmd file is also ok, looks very good