Minor fixes for typos/inconsistencies in parallel docs

Running through the entire Direct interface page within a single session would produce errors/unexpected behavior due to inconsistencies in the naming of variables. In particular, a & b are defined earlier, so they don't throw a NameError as expected in the example.