BUG: fixed bug in varian.py
TST: tests working on OS X