Twisted Pair can do low level TCP work.

Twisted Lore is available under the MIT Free Software licence.

WWW: http://twistedmatrix.com/