I have a .txt file containing a list of lists, each list is a set of coordinates:

```
[[151.22999572753906, -33.84008789062494], [..., ...],... [..,..]]

```

I want to know how I can read this file as an array and not as a string so I can easily extract all the coordinates I need.

My code so far:

```
import re

d = '[[151.22999572753906, -33.84008789062494], [151.22999572753906, -33.84008789062494][151.22999572753906, -33.84008789062494]]'
##l = re.split('[\[\]]', d)
l = re.split('\]\[', d)
print(l)

>>>['[[151.22999572753906, -33.84008789062494], [151.22999572753906, -33.84008789062494', '151.22999572753906, -33.84008789062494]]']

```