Added the forgotten file "modelsbase.py" from previous commits.