Finished all major functionality for python XChat/Hexchat script.