Actually, inside the — of the README.md file is a YAML configuration file, so the behavior of the model may change depending on changes.
The outside, on the other hand, is just a README.
But looking again at your program, there should be few cases where this style of calling causes problems…
The problem with README.md is usually caused by calling the model with the API.
However, if you are getting errors related to self, it must be a bug in some Python class, so I still suspect the model and the functions for it and these options.
Anyway, in these cases, it helps to try another similar model to isolate the cause of the problem.
Possible workarounds will be known if they exist once the location of the bug is known.