Python calls Rt:User:GeneratePassword

Hi, RT community,
How can I call RT:User’s GeneratePassword method to encrypt my plain text password from my Python code?
Thanks.