python director