code: def from_two_bytes(bytes):
      
      lsb, msb = bytes
      try:
          # Usually bytes have been converted to integers with ord already
          return msb << 7 | lsb
      except TypeError:
          # But add this for easy testing
          # One of them can be a string, or both
          try:
              lsb = ord(lsb)
          except TypeError:
              pass
          try:
              msb = ord(msb)
          except TypeError:
              pass
          return msb << 7 | lsb
docs: Return an integer from two 7 bit bytes.