def _get_binary(value, bits):
 return ''.join([str(((value >> y) & 1)) for y in range((bits - 1), (-1), (-1))])

def _get_binary ( value , bits ) : return '' . join ( [ str ( ( ( value >> y ) & 1 ) ) for y in range ( ( bits - 1 ) , ( - 1 ) , ( - 1 ) ) ] )
provides the given value as a binary string .