Create dynimic properties via scripting

I want to create a property “Connections”. and then for each connection, create a bunch of properties.