added keysize() method.  added support for py33