Fixed code formatting and bad module references.

Code was not formatted properly, needed to be introduced with double colon (::).
Fixed erroneous references to flask.ext.script.command (actually "commands").