small syntax changes and generating r script from py