Flask 0.10 compatability