And don't build strings with a series of + operators. Strings are immutable in Python, so each of these operations will create a completely new string, then throw it away. Instead, use string interpolation. 'Hello %s' % name or 'Hello {name}'.format(person=name).
https://github.com/mozilla/fireplay-sublime/blob/master/fireplaylib/client.py#L98
This is... I think... JSON? Don't generate it by hand like that. Two things:
json
module+
operators. Strings are immutable in Python, so each of these operations will create a completely new string, then throw it away. Instead, use string interpolation.'Hello %s' % name
or'Hello {name}'.format(person=name)
.