State relative imports explicitly.

* Reorder imports in accordance to PEP8.
* Replace calls to privtopub with calls to
  privkey_to_pubkey for consistency.