Make pi-manage work with Flask-Script 0.6.7
Make pi-manage work with Flask-Script 0.6.7

Working on #696

wheldom01/privacyidea,wheldom01/privacyidea,wheldom01/privacyidea,wheldom01/privacyidea,jh23453/privacyidea,jh23453/privacyidea,privacyidea/privacyidea,jh23453/privacyidea,privacyidea/privacyidea,jh23453/privacyidea,privacyidea/privacyidea,privacyidea/privacyidea,wheldom01/privacyidea,jh23453/privacyidea,wheldom01/privacyidea,privacyidea/privacyidea,privacyidea/privacyidea,jh23453/privacyidea