Simple setup for http Uploads with python, just run
./start_cgi_http_server.sh
and connect to [http://[yourIP]:8000/cgi-bin/upload.cgi]
Shamelessly copied from [https://gist.github.com/ohtomi/74c49a4f6b460d9097f7] ported to python 3 and added length check.