def send_im(self, user, text):
if isinstance(user, SlackUser):<EOL><INDENT>user = user.id<EOL>channelid = self._find_im_channel(user)<EOL><DEDENT>else:<EOL><INDENT>channelid = user.id<EOL><DEDENT>self.send_message(channelid, text)<EOL>
Sends a message to a user as an IM

* user - The user to send to.  This can be a SlackUser object, a user id, or the username (without the @)
* text - String to send