Regex Get Number From String In Python Function