I incorrectly removed some stuff from bosh.py before, so adding it back in.