How Map Function In Python Works