Take a look at CasperJS. That will eliminate the Python side of things. You can probably build your report within CasperJS too, but I would just export the relevant data to a database and standardize your RoR codebase to the point where adding extra reports is a simple proposition.