Use Javascript Variable In String Python Functions