better living through list comprehension: performance tweak on opc.py

Here's an update to opc.py that uses list comprehension to improve the performance of put_pixels while remaining functionally intact.