making pylint happy and adding a return statement