def pid_indent(pid):
 hash = md5(str(pid))
 number = int(hash.hexdigest(), 16)
 indent = (number % 32)
 return indent

def pid_indent ( pid ) : hash = md5 ( str ( pid ) ) number = int ( hash . hexdigest ( ) , 16 ) indent = ( number % 32 ) return indent
get an md5-based indentation for a process id .