more pylint fixes, fixed window drawing