partial python 3 compatibility
ignore .obo and .png files