A Python file starting with a block of import lines came back as CSS with a higher relevance score than Python. Limiting auto-detection to the languages a site actually uses fixed it:
hljs.configure({ languages: ['ruby', 'bash', 'python', 'sql', 'javascript', 'yaml'] });