Using Flask to trigger pipulate question mark replacement