Improved shared.py
Released version 0.3.0