`'$inc': {('derive_state.%s.%s' % (ts_key, src_stream.id)): value}` then?

PEP8 didn't complain?