python factory blem