Use os.path.join as an OS independent way to create directories i.e windows uses backward slash(\) but unix uses (/) which are incompatible.