This depends entirely on what you do with the input from the webform. In normal use the form gets encoded as x-www-form-urlencoded or json -- Both formats which can be deserialized into a python dictionary completely safely. Of course, they could be deserialized in unsafe ways too -- Make sure that you use libraries that are dedicated to handling this properly (e.g. urlparse or json).
From there, whether the input is safe depends entirely on what the application does with it. (e.g. it is not safe if the application uses eval with input based on the decoded dict).
As for automated testing for this -- I don't know of any way to accomplish this, but these problems are generally pretty easy to mitigate by just following normal best-practices (don't eval code you don't trust, etc. etc.)
Videos
» pip install inject
Once and for all, I want to learn the answer for this question, there are a lot of python developers arguing that DI is Java/C# thing only, but I also find people who said that they use DI in python and other dynamic languages (e.g. php). Did you ever used dependency injection in python (it would be good if you could provide example)? Does DI required in dynamic world? Should average python developer learn how to use it? What's in other dynamic languages (php, ruby etc) with DI?
» pip install python-injection