find/extract a sequence of integers within a list in python,"[1, 2, 3, 4]"