Local variable possibly referenced before assignment

Automatic cleanup with PyCharm
Do not use the 'callable' Python keyword as arg name

Automatic cleanup with PyCharm
[style] Remove trailing semi-colons

Automatic cleanup with PyCharm