Any statement in a python function after the return-statement will never be executed and is thus unreachable. (Re)move the debug print to resolve your issue.
return