Python Define Variable In Function In Power