Changed hasattr __iter__ check to not isinstance(result, str).
Merge pull request #27 from petteraas/type_check_python3

Changed hasattr __iter__ check to not isinstance(result, str) for Python3 compatibility.