The library tlslite included in the gdata python library is a good option.
http://code.google.com/p/gdata-python-client/
example:
from tlslite.utils import keyfactory
private_key = keyfactory.parsePrivateKey(rsa_key)
signed = private_key.hashAndSign(data)