Auto-wrapping for nsls2 library

In progress, don't merge  yet
should escape `'''` as well to be safe