py: making build importable, crossplatform autobuild