Adds use of common window inits and draws from kspmc.py and deletes superfluous
local functions.