This is now my current code after what user2486 said.
def romanMap():
map=((\"M\", 1000),(\"CM\", 900),(\"D\", 500),(\"CD\", 400),(\"C\", 100),(\"XC\"
No need to reinvent the wheel (unless you want to). Python comes with a converter:
import roman;
n=roman.fromRoman("X"); #n becomes 10
If you need it for numbers 5000 and above, you'll need to write a new function, though, and maybe make your own font to represent the lines over the roman numerals. (It will only work with some numbers, at that. Stopping at 4999 is a really good idea.)
To convert to roman numerals, use roman.toRoman(myInt).
Someone else actually linked to the same source code the roman module uses in one of the comments above, but I don't believe they mentioned that it actually comes with Python.
EDIT: Note that on some systems (Windows, I think) you can't just type import roman from the default installation. However, the source code still works on Windows, and it's included with the Python 3.4.1 source code download (probably earlier ones, too) at this location /Python-3.4.1/Doc/tools/roman.py