Adding write/append options to open method

Read option is not currently supported.
Also __init__ accepts a pytables file handle.