def unique_file_name(base_name, extension=''):
    idcount = 0

    if extension and not extension.startswith('.'):
        extension = '.%s' % extension

    fname = base_name + extension

    while os.path.exists(fname):
        fname = "%s-%d%s" % (base_name, idcount, extension)
        idcount += 1

    return fname
Returns the OGR Geometry Type for this Feture.
dataset/ETHPy150Open devttys0/binwalk/src/binwalk/core/common.py/unique_file_name--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/contrib/gis/gdal/feature.py/Feature.geom_type