Regex for hexadecimal string python example