Fix AttributeError

Do not throw AttributeError for # -*- coding: utf-8 -*-
it's common used for python utf-8 settting