Changed the process method to return a list of tuples (buffer, type).
Formatted to meet PEP8