Transform into a Python module

Change-Id: Idcd460c9ed8c5fe2ef52d3fbefbf9705eadc2710