(password, uppercase=False)
return retVal.upper() if uppercase else retVal.lower()
>>> md5_generic_passwd(password='testpass', uppercase=False)
    '179ad45c6ce2cb97cf1029e212046e81'
>>> md5_generic_passwd(password='testpass', uppercase=False)
    '179ad45c6ce2cb97cf1029e212046e81'
>>> md5_generic_passwd ( password = testpass uppercase = False ) 179ad45c6ce2cb97cf1029e212046e81
def md5_generic_passwd(password, uppercase=False):
    """
    >>> md5_generic_passwd(password='testpass', uppercase=False)
    '179ad45c6ce2cb97cf1029e212046e81'
    """

    retVal = md5(password).hexdigest()

    return retVal.upper() if uppercase else retVal.lower()
def md5_generic_passwd ( password , uppercase = False ) : retVal = md5 ( password ) . hexdigest ( ) return retVal . upper ( ) if uppercase else retVal . lower ( )