Update basecompiler.py

Enable multi-table inheritance (for proxy models)