port makeWith() from jython2.7 b1