Fix some PyCharm inspection