Reduce Map And Filter Function Python Format Printing