I am using near feature tool in ArcGIS 10.1. However, I need to add another condition to it (not only the nearest). The feature (point) that i am looking for, is the nearest (point) and also doesnot cross another feature (line or area feature). For example, if the shortest distance line crosses another feature (line or area feature), then it has to start looking for another near feature (point) to which the shortest distance doesnot cross the feature (line or area). Is it possible using python?