ScardFace is a python3k library for interfacing with smart cards, which supports Plug-and-Play readers inclusion and threading. It also offers classes for manipulating APDU cmds and resps, and use them in a transport-protocol-independent fashion.
JLongTCPConn is a developing toolkit for TCP connection and session. It does the jobs of TCP processing (such as login, session maintainment, active-test or heartbeating, and data buffering), which makes you focus on application layer logics.