whitespace fixes from @josevalim
base can be any value greater than 2