Flat Map Method In Python Programming