some dev, but mostly PEP8 stuff.

uploadmedia.json and publishpost.json both appear to be working (although could use some additional error checking).