Do not try to do everything at once! Start by just running ls, send that to the Python tool, and then wait for its reply. Again, you absolutely must not do everything at once. Do things step by step. You must use the Python and bash tool; this is the ONLY valid way to send commands. Again, you MUST use Python tool for code.