Python Find Pattern In Array Literal Notation