title: Using Python to communicate with a minecraft server
body: <p>This question was deleted when I was just about to answer it with some relevant information. I thought that, although it was phrased in a way which made people dislike it, and no code was posted, it <em>was</em> a useful question. As such, I decided to post it here, along with my partial answer. The current code I have has a problem with it, if anyone knows a solution I would be glad to hear it. Also, if anyone knows a cleaner solution (e.g. using the <code>communicate</code> method of <code>Popen</code> objects), that would be good too.</p>
  
  <p>As I remember it, the relevant part of the question was this:</p>
  
  <p>How can I use Python to communicate with a Minecraft server? I have a user interface set up, but I am unsure how I can connect to the server and send commands through to it.</p>