reduce fix in problem003

Updating problem003 to import python3's reduce where necessary