I am looking at the following SHA256 pseudocode on wikipedia.
Specifically, I am looking at the following section.
//Initialize variables
//(first 32 bits
Voila. (Apologies to OP for not doing a Python answer but I hope the method is clear.)