Ignore .py[co] files in listing indexes.

This is #1141.