Fix equality tests for Python 3.x

Since map() returns generator in 3.x, it's not possible to compare them
without unwrap.