Post attachments

How do I attach a python file to a new post or reply.
The present arrangement appears to require the format of an image file, this is a little impractical for files >= 30K .