fixed flask extension import.