import os, re from sys import exit SOMECONST = None somevariable = min(sum(1,2), max(range(10))) def some_callable(argument1, argument2=False): """ Doc-string for some_callable function. """ if not argument1: return None try: argument1.do_stuff() except (AttributeError): # some comments if not can_fail: raise return argument1 class RegexPattern(object): def __init__(self, regex, name): self.regex