dict mathing should not return tuple
Python3 compatible