Take the stored imports and converts them to lines

def get_import_lines(self):
        """ Take the stored imports and converts them to lines """
        if self.imports:
            return ["from %s import %s" % (value, key) for key, value in self.imports.items()]
        else:
            return []