Fixes for PyCharm lint