BUG: Make f2py work with intent(in out).

Note that Fortran ignores spaces in this case, so that 'in out' is
treated as 'inout'.

Closes #479.

Rebased for backport to 1.9.0.
Ah, yes. I'm afraid to run pep8 on these files.

OK, I lied, running pep8 yields over a thousand PEP8 violations ;) I've fixed three.