Access constraints in Abaqus scripting

Hello everyone,

Is there any reason why I shouldn't be able to access constraints and define Coupling conditions in a model, by using Abaqus scripting in Python? If I simply do

 

    mdb = openMdb("fe-data_old/Linear_Flextrack.cae")

    src_model = mdb.models[source_model_name]

    constraints = src_model.constraints

 

I get AttributeError: 'Model' object has no attribute 'constraints'.
Similarly, if I try to redefine them in Python (just as a learning exercise), I get that model has no attribute "Coupling". The same operations are working just fine if performed on the CLI within Abaqus CAE.

Any help/advice would be greatly appreciated, thanks!