Python 3 compatibility fix

encapsulated the map function of the parse method by
list to get a proper list instead of a map object