Ok i found the answer elswhere:
struct.pack("%dh"%(len(shorts)), *list(shorts))
results in a correctly formatted string for pyaudio.
Nevertheless i will happily accept any other answer, which explains the function calls and their correct usage!