from tokenizer import correct_spaces
>>> correct_spaces('Þarna voru t.d. tveir hundar , m.a. hundurinn hans Jóns .')
# Expected output: 'Þarna voru t.d. tveir hundar, m.a. hundurinn hans Jóns.'
# Output: 'Þarna voru t. d. tveir hundar, m. a. hundurinn hans Jóns.'
Using the newest version of Tokenizer, 3.4.2: