worked on generalized doubling algorithm
PY3: fixed relative imports in init.py files
MERGE
MERGE: merged init.py changes from master