Changed Procfile, based on reviewerator's.
Prepared a test to print out and see the contents of an SMS that's sent to the site.
Needed to comment out the pseudo-code threader.
The class was written like a function. Dumb syntax mistake.
Variable/argument name mismatch. This is why you test locally, I guess.
printed <bug.receive_message instance>. Now I'm going to iterate through the contents.
Now, looking at web.cx.env, seeing if THAT'S what I want. Twilio example suggests it is.
Changed 'web.ctx.env' to 'web.ctx.query'
Another one-line change; looked up responding to POST requests online, here's what I got (for web.py) verbatim.
Another attempt at handling a post request. Now trying to read the KnownLengthRFile, which looks like it's a cherrypy thing.
A last trial, using cgi.FieldStorage(). Not TOTALLY clear on how it works. If this doesn't I've succeeded in finding the raw string, and I can just parse it by hand if necessary.
First complete draft. Everything COULD be done. I'm sure it needs debugging of course, but all the core elements are there.