Restructured legacy python code. Started to work on the Autoscaling component.