more flexible method for finding boost python