Fixing series data type to iterable for Python 3 compatibility