code: def auto_detect_serial(preferred_list=['*']):
      '''try to auto-detect serial port'''
      # see if 
      if os.name == 'nt':
          return auto_detect_serial_win32(preferred_list=preferred_list)
      return auto_detect_serial_unix(preferred_list=preferred_listf auto_detect_serial(preferred_list=['*']):
      '''try to auto-detect serial port'''
      # see if 
      if os.name == 'nt':
          return auto_detect_serial_win32(preferred_list=preferred_list)
      return auto_detect_serial_unix(preferred_list=preferred_list)
docs: try to auto-detect serial port