Update dependencies and trim makefile
Port Python version to R

This does not actually work yet, of course...