Some python networking code