Use R Code In Python For Calculator