Map And Split Function In Python For All Selected Lines