Python version of roman numerals can convert both directions