The standard for python documentation strings is described in Python Enhancement Proposal 257.
The appropriate comment for your method would be something like
def format(...):
"""Return timestamp string with place holders replaced with values.
Keyword arguments:
timestamp -- the format string (default '')
priority -- priority number (default '')
priority_name -- priority name (default '')
message -- message to display (default '')
"""