added options for linking with python