How Do Return Functions Work In Python