Update halfnode.py