I know next to nothing about Python, Perl or PhP but I would think you should be able to compile it into a single executable or at the very least a page and a .dll.

Saying that, my only experience is with ASP.NET so I could be way off base.