generate a repeated square pulse train in python
Actually, as mention by @applesoup your question is not clear but as far as I understood you can repeat the signal using 

numpy.matlib.repmat(a, m, n)
Repeat a 0-D to a 2-D array or matrix MxN times.
Parameters: 
    a : array_like
    The array or matrix to be repeated.
    m, n : int
    The number of times a is repeated along the first and second axes.
Returns:    
   out : ndarray
   The result of repeating a.


For further better understanding, you can look this link