I don't think you need the 0 after the x. Try '\x00\xff'