fixed error with os.mkdir(), replacing it with os.makedirs()