cast "range" to "list" in py3