Python3 support for dict_keys to list