Flask decorator external method