Use DictReader instead of file and mapping lambda function.