Add intlist_to_bytes to utils.py