[python] Regular expression to match a dot