Assign mygpo_client earlier in the code