SleekComponent is a project mainly written in Python, it's free.
XMPP Component Framework for Sleek that includes presence and rosters.