adding coding:utf-8
suggestion for get_downcast solution