Clean up and follow code conventions
Merge pull request #690 from gasull/cleanup-ignat99-feat

Cleanup ignat99 feat
Flag implicit relative imports (W0403).
State relative imports explicitly.

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