moved import os up a couple lines so before its use