hMailServer integration with Python

How can I integrate hMailServer with a Python program?