You are not using this variable anywhere on the function, this is not a good practice, maybe you must use pylint to catch this kind of situations.