Also known as `os.path.splitext(filename)[1] in ['.py', '.html']`