In the case of Python 2.x, we can use the map function
results = map(int, results)
In the case of Python 3, You actually need to convert the result from map into a list:
results = list(map(int, results))
Want to know more about python? Come and Join: Python training course