include compiler defines and other minor refinements
added a Python demo