I have a droplet using the one click Ubuntu Ruby on Rails on 14.04 (Postgres, Nginx, Unicorn).
Within my /lib/assets folder i have a ruby script that uses mx module to find the date. I run it with result = `python ...
Have you tried to install the module using pip?
pip install egenix-mx-base