it's actually os.pardir not os.path.pardir