template method pattern def _sync_stock_items_step_ (self)print("sending updates to third party system "def _send_transaction(selftransaction)print("send transaction to system { ! }format(transaction)class system (thirdpartyinteractiontemplate)def _sync_stock_items_step_ (self)print("running stock sync between local and remote system "def _sync_stock_items_step_ (self)print("retrieving remote stock items from system "def _sync_stock_items_step_ (self)print("updating local items"def _sync_stock_items_step_ (self)print("sending updates to third party system "def _send_transaction(selftransaction)print("send transaction to system { ! }format(transaction)class system (thirdpartyinteractiontemplate)def _sync_stock_items_step_ (self)print("running stock sync between local and remote system "def _sync_stock_items_step_ (self)print("retrieving remote stock items from system "def _sync_stock_items_step_ (self)print("updating local items"def _sync_stock_items_step_ (self)print("sending updates to third party system "def _send_transaction(selftransaction)print("send transaction to system { ! }format(transaction)