in src/replay.py [0:0]
def _sqs_attributes_cleaner(attributes):
"""Transform SQS attributes from Lambda event to SQS message."""
d = dict.fromkeys(attributes)
for k in d:
if isinstance(attributes[k], dict):
subd = dict.fromkeys(attributes[k])
for subk in subd:
if not attributes[k][subk]:
del attributes[k][subk]
else:
attributes[k][''.join(subk[:1].upper() + subk[1:])] = attributes[k].pop(subk)