Uses heuristics to classify a Python file as Python 2 or 3. Prefers 3 if unclear.