rename shared library to libpysnopt7.so to avoid name clash when another dependency uses libsnopt7.so
add dimension checks to snopta and docstring