Suppot for python integer as key material