Find All Pairs In Array Python, Like the first entry is 1 and 0.