Python Find Substring In List Of Strings To Integers