Fixed flask dependency issues.