Revision 09f7816d-b61c-4c97-8a9f-596c77ce2d89 - Code Golf Stack Exchange
# [Python 2], <s>127</s> <s>118</s> 116 bytes
Takes input as a list of lines.
<!-- language-all: lang-python -->
for r in input():
for w in 59**27,17**90,61**26:print''.join((' '+c)[w>>ord(c)%30*3+k&1]for c in r for k in(2,1,0))
[Try it online!][TIO-kruy51n5]
[Python 2]: https://docs.python.org/2/
[TIO-kruy51n5]: https://tio.run/##LYxBCoMwEEX3PcVs2kliaIxSRRdexIgLS6kKSQgWKXj3NCMdZvH@//D8d3s7W8T4cgECzDa9/2yMtxegaqfq0QhR1FLXQjS5rHRKVevDbDfE@@JmyxgCZhPv965z4ckmfi1zUWbrTQ9kmcgSTuGakBVSy5zzGHsEUMYAoAQEBZCYUI3pjDlbOI7/TkQwKhpHHH4 "Python 2 – Try It Online"