Fix misc pychecker warnings