Hapus ruang duplikat dalam string di pytoon

>>> import re
>>> re.sub(' +', ' ', 'The     quick brown    fox')
'The quick brown fox'
Fragile Flamingo