<human>:  Python: how to get rid of spaces in str(dict)?
<bot>: Here is some code to remove all spaces from a string converted from dictionary `{'a': 1, 'b': 'as df'}`

str({'a': 1, 'b': 'as df'}).replace(': ', ':').replace(', ', ',')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.