Create apilib.py

A required library used by BoomBox