variable name error

The variable name --- `dist` error
`dist = {}`  will cover `dist = grades.answer_distributions(course.id)`

@ormsbee 
@sarina