Update im.py

This update adds multithreading functionality to im.py.  This means that you can now send more than one message in a row.