This is the start of a python implementation of imgtool. This implements all of the functionality that was missing in the zep2newt.py tool, namely creation of keypairs, and converting the public version of these keys into C code.