Hi, My thought is seperate main and utility functions to different files. For example there will be a Main.py and UsbUtil.py and from Main.py you can import usb functions. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/tutor/attachments/20060911/873f4450/attachment.html