Python funtion to hash passwords for igntion user database

here is the topic i found -> Hash algorithm for storing password in internal DB. Can you tell me how to import the class with a quick example or so?