Python Convert Integer Array To Bytes