pyi_crypto: Use modname instead of using a duplicated string