Reverted to the older version of Flask-Script to avoid debug issue