init flask mvc pattern.