[1.7.x] Don't treat .pyc/pyo files as migrations. Refs #23237 among others.