move synchronous_get to network.py, fix get_balance script