Python - Editing Feature Size Local Threshold