Find the longest sequence
Correctness

Input
1 1 1 1 0 0 0

Output
None, None
0, 4


The reason is obvious: the longestSequence does not distinguish between longest sequence of zeroes and longest sequence of ones, so 0 0 0 is not considered long enough.
General


Avoid globals; prefer returning values.
There is no need to pass size; a list already knows its size. For the same reason, size = int(input()) is redundant and reduces usability.