COM-like framework in Python