import pygit2 as g
repo = g.Repository('.')
oid = repo.write(g.GIT_OBJ_BLOB, contents)
bld = repo.TreeBuilder()
bld.insert('file.txt', oid, attributes)
add blobs or trees to a created repository using pygit2 (libgit2)?