If your friends are on windows, you can use py2exe, but if they are on a Mac, I'm not sure if there is an equivalent. In any case, compilation like this violates cross-platform compatibility, which is actually the point of the interpreted language ...
Python is simply not configured to hide such code; it is against it, as far as I can tell.
source share