Printwriter is working
Now uses PrintWriter and BufferedReader instead of ObjectOutputStream and ObjectInputStream in order to match the Python code on the raspberry