PythonUI: improve label sanitisation.

Improve the label sanitisation in PythonUI, which now produces labels that are
valid in Python 2 and 3 and which completely removes periods ("."), since these
are typically used as abbreviations.
Remove redundant TODO.
PythonUI/param: store original label as obj.label.