Better handling of Python dependencies during make