move cffi stuff out to bindings.py
declare colors as top-level
move python wrappers to their own file