Fixed pragma typo in _open_shelve

`not PY3K` means Python 2.x but its corresponding `pragma` indicates otherwise. Since tests are passing, I can only assume it is a type on the `pragma` part. Maybe @mdboom can confirm.