old_contents: #!/usr/bin/python
  # -*- coding: utf-8 -*-
  from __future__ import print_function
  # Block below for Python 2&3 support
  try:
      input = raw_input
  except NameError:
      pass
  
  # Marco Forte, 18/06/2014
  # Example of using Digital IO to  write across both ports 0 and 1 of the Usb 6008
  
  from digital_io import Digital_IO
  
  myDigital_IO = Digital_IO()
  while True:
      inputNum = input('Enter number to write: (Enter nothing to exit)')
      if not inputNum.isdigit():
          print('Input, ' + inputNum + ' ,not a number, exiting...')
          break
  
      myDigital_IO.write(int(inputNum))
  
new_contents: #!/usr/bin/python
  # -*- coding: utf-8 -*-
  from __future__ import print_function
  # Block below for Python 2&3 support
  try:
      input = raw_input
  except NameError:
      pass
  
  # Marco Forte, 18/06/2014
  # Example of using Digital IO to  write across both ports 0 and 1 of the Usb 6008
  
  from pydaqmx-helper.digital_io import Digital_IO
  
  myDigital_IO = Digital_IO()
  while True:
      inputNum = input('Enter number to write: (Enter nothing to exit)')
      if not inputNum.isdigit():
          print('Input, ' + inputNum + ' ,not a number, exiting...')
          break
  
      myDigital_IO.write(int(inputNum))
  
subject: Update Digital_IO.py