A Python implementation of R-PCA