move build_py import into function that uses it