Extract Number From String Python Functions