Rename return_tup into return_tuple. Add docstring