It's the most pythonic way I found to create safe setters and getters for a property: https://www.programiz.com/python-programming/property