Fixed python encoding issue on stdout