fixed int_to_rgb on python3/Windows