The process of generating new coins, and them entering circulation; is called mining.
It works by running the SHA256 hash algorithm. And trying to get the hash value below a certain value. (the network's difficulty)
Depends on PyCrypto (for SHA256).