Base and remote python socket code frames