's' is the list of the initial state of the LFSR (also 1s and 0s).
'p' is a list/array of 1s and 0s corresponding to the coefficients of the Was planning to see if it was for an assignment or something since I don't like doing people's assessable work for them (not good for learning), but given you're interested and it's not particularly complicated, here: import numpy as np