def leading_zeros(l,n):
   """
   
   If list l has less than n elements returns l with enough 0 elements
   in front of the list to make it length n.
   
   """
   if len(l) < n:
       return(([0] * (n - len(l))) + l)
   else:
       return l