removed r.py script, added it as a submodule