import subprocess class HelloWorld: """docstring for SampleModule.""" def run(self): print("This shows that your installation is working correctly.") subprocess.call("screenfetch", shell=True) print("You can now start using the tool.") output = subprocess.check_output("cat /etc/*-release", shell=True).decode("UTF-8") with open("your_system_information.txt", "w") as file: file.write(output)