Completing xbee_driver.py with door lock subroutines