python – Create a calendar without using any modules that perform date calculations

So this is basically what I have to create

    January 2017
Su Mo Tu We Th Fr Sa
 1  2  3  4  5  6  7
 8  9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31

It would be easy with importing calendar at the top, but I have to create it without it. I don’t even know where to start, so if someone could give me a bump in the right direction that would be great. The output has to be always 8 lines long and the input has to NOT be prompted, just separated by a single space. I don’t