def dec2bin(k, bitlength=0):
    return [1 if digit == '1' else 0 for digit in bin(k)[2:].zfill(bitlength)]
Returns the internal only pb representation.
dataset/ETHPy150Open gmum/pykernels/pykernels/graph/allgraphlets.py/dec2bin--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/datastore/datastore_query.py/PropertyOrder._to_pb