I just wrote a simple YouTube downloader. You can grab the code for it from here:
It’s a simple CGI script with a form to submit a YouTube URL. It then streams the video download to the user. If you run this on a machine in the USA then it provides an easy way to bypass YouTube’s region checking.
Ask me if you want the URL for an installed copy.