fix rate format parser for variable-length rate values
since we're supposed to support Python 3.3, let's ensure Travis tests it