Seperate objects by loose parts automatically in python
Ok. I've search quite a while now. But just after posting this I stumpled on the answer sigh. If any one else is interested:

Enter edit mode
press &quot;a&quot; to select all vertices
press &quot;p&quot; to separate by loose parts