port paramspec to python < 2.7