Why import os? I don't see it being used in the diff.