Create lib.py

createChannels()
createGroupLayers()
setGeometry()
setChannel()