Backend uml more defined. Python code for backend.