import proper map() from 'six'