PY3: forcing execution of map by adding list()
fixing comparison of array of doubles and string through try/except block