Fixes pylint errors