Adding a path to a layer

After doing

Glyphs.font.selectedLayers[0].paths[1] = aPathIMade

I get:

Traceback (most recent call last):
  File "<string>", line 41, in <module>
  File "/Users/georg/Programmierung/Glyphs/Glyphs/Glyphs/Scripts/", line 1039, in __setitem__
AttributeError: 'NSKVONotifying_GSLayer' object has no attribute 'setPath_atIndex_'

Is this the right way to add a new path to a layer, or is there another one?

Oh never mind. paths.append works fine.