Regex for hexadecimal string python