def rzpad(value, total_length):
 return (value + ('\x00' * max(0, (total_length - len(value)))))

def rzpad ( value , total_length ) : return ( value + ( '\x00' * max ( 0 , ( total_length - len ( value ) ) ) ) )
right zero pad value x at least to length l .