title: How to split coordinates in a string into a list of smaller lists
body: <p>I am trying to turn a string of coordinates "(x1, y1), (x2, y2)" into [[x1,y1], [x2,y2]] where all the coordinates are converted into floats as well.</p>
  
  <p>My current code doesn't seem to trim whitespace of the y coordinates nor does it convert the strings into floats.</p>
  
  <pre><code>coordinates = "(-89.38477, 26.6671), (-89.38477, 27.13737), (-88.81348, 27.13737), (-88.81348, 26.6671)"
  for x in re.findall("\((.*?)\)", coordinates):
          final_coordinates = x.lstrip().split(',')
  </code></pre>