Changed behavior of parse_tokens()

It now returns a list of lists, it also convert tokens to
ints or floats when possible.