Creating frameworks in Python