clone pattern version2 Python