Clone design pattern Python