Python: How to skip element in map function