fix some PyCharm lint issues