Entity based framework for Python