python regex replace point with underscore

Solutions on MaxInterview for python regex replace point with underscore by the best coders in the world