polish Generate Labtalk function HTML python code