psf/black online demo
Black is an open-source Python code formatter by @ambv. This is an example implementation.
Check it out.