OK.  an inline comment (# choose a non-default port, to avoid messing with other KA Lite installations) would be helpful.

Thanks for all the explanations, it's really interesting!  And your code seems quite clean to me.  Just a few comments here and there would help, as described.

Otherwise, just looking forward to trying it out!  Thanks for your patience on the pull request, and for putting this together!