Splits out component scope into scope.py