Advisory
Details, part 2 of 2. The advisory
Or apply os.path.normcase() to both operands before comparison.
os.path.normcase()
Sources & licences