Let $\Sigma_g$ be a closed orientable surface of genus $g$ on page 36 of this paper. It is asserted that for a finite group $Q$, a homomorphism $\pi_1(\Sigma_g)\rightarrow Q$ determines an element in $H_2(Q,\mathbb{Z})$.
How does this work? This is especially confusing to me, since they don't even specify the action of $Q$ on $\mathbb{Z}$, and the homology group doesn't seem to include the data of $\pi_1(\Sigma_g)$ at all.
Very generally, given a homomorphism $G\to H$ of groups, there is an induced homomorphism $H_n(G,\mathbb{Z})\to H_n(H,\mathbb{Z})$ on homology (here the actions of the groups on $\mathbb{Z}$ are trivial). In your case, you have $G=\pi_1(\Sigma_g)$, $H=Q$, and $n=2$, giving a homomorphism $H_2(\pi_1(\Sigma_g),\mathbb{Z})\to H_2(Q,\mathbb{Z})$. But $H_2(\pi_1(\Sigma_g),\mathbb{Z})=H_2(\Sigma_g,\mathbb{Z})=\mathbb{Z}$, so this is just a homomorphism $\mathbb{Z}\to H_2(Q,\mathbb{Z})$. The element in $H_2(Q,\mathbb{Z})$ we are interested in is just the image of $1\in\mathbb{Z}$ under this homomorphism.
So to answer the specific points you were concerned about, the action of $Q$ on $\mathbb{Z}$ is trivial, and the special property of $\pi_1(\Sigma_g)$ used here is that we have a chosen class in $H_2(\pi_1(\Sigma_g),\mathbb{Z})$ whose image we can take.
(The paper describes this in topological terms: a homomorphism $\pi_1(\Sigma_g)\to Q$ gives you a map of classifying spaces $B\pi_1(\Sigma_g)\to BQ$, and then you are looking at the induced map on $H_2$ of these spaces. But $B\pi_1(\Sigma_g)$ is just $\Sigma_g$, so there is a canonical class in its $H_2$ (the fundamental class), and we can take the image of this class in $H_2(BQ,\mathbb{Z})$.)