it\'s ok to use map
pylint caught some missing imports