Function and Variable Names
Function names should be lowercase, with words separated by underscores as necessary to improve readability.
Variable names follow the same convention as function names.
mixedCase is allowed only in contexts where that's already the prevailing style (e.g. threading.py), to retain backwards compatibility.
(from PEP8 : https://www.python.org/dev/peps/pep-0008/#function-and-variable-names)
You use a lot of CamelCase (e.g.: deviceComboBox, unitTextLabel, …) and from the line 1330 you use "opt[1-13]" as variable name.
You use a lot of CamelCase (e.g.: deviceComboBox, unitTextLabel, …) and from the line 1330 you use "opt[1-13]" as variable name.