Custom Map Function In Python W3schools