Generate Hexadecimal String Python