Python Function Passing Variables Through Methods