The person who wrote this didn't test the code by the looks of it. Line:
irc.send ( 'PRIVMSG #paul :Fine, if you don't want me\r\n' )
should be
irc.send ( 'PRIVMSG #paul :Fine, if you don\'t want me\r\n' )
or
irc.send ( "PRIVMSG #paul :Fine, if you don't want me\r\n" )
Also what's with all the spaces everywhere?