Extract eventize.py to "api" package