Actually convert the python tests - finishes #1460
tests: prefer testing png encoded bytes