# express an affine space as linear system of equations

Given an affine space, for example {25,27,29,31} in $\mathbb{F}_2^4$, how can I find the equations to express the space as $Ax=b$. I believe there must be some commands in sage can help me. But I can not find them.