Add module init function and support keywords in pywl.createDevice(...)