Fix unicode filename issue.
Cleaning, indenting. Some Python convention.
Example for upload handler usage.