i have a string which is a return value of REST API (http://requesttracker.wikia.com/wiki/REST) and is using colon seperated key/value pairs.
id: 123414 nam
That looks like YAML. Have you tried PyYAML?
>>> import yaml >>> s = """id: 123414 ... name: Peter ... message: bla bla ... bla bla""" >>> yaml.load(s) {'message': 'bla bla bla bla', 'id': 123414, 'name': 'Peter'}