Keychain memory management fixed

Some ctypes headaches with memory management should be fixed, allowing
the Keychain.retrievePassword() method to return a working passwordl