<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def byteswap(data, word_size=4):
 """ Swap the byte-ordering in a packet with N=4 bytes per word """

    return reduce(lambda x,y: x+''.join(reversed(y)), chunks(data, word_size), '')