Modified the openfile() function to match the relax conventions.
The function comments were converted to the function docstring, comments were added to the code, and the spacing was fixed.
Authored by: bugman 2010-01-26
Parent: [r10372]
Child: [r10374]