human
Regex add character to matched string
assistant
Here is some code to replace periods `.` that are not followed by periods or spaces with a period and a space `. `

re.sub('\\.(?=[^ .])', '. ', para)

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