help_dir.py (Source)

import smtpd
from datetime import datetime
# help(smtpd)
# NB: dir() lists of valid attributes and methods
print(dir(datetime))
print(dir(datetime.tzname))