python pseudo server