Moved some code into `if build.with? "python"`