Python Assign Variable In Function In Excel