Moved symbol functions and classes to symbol.py
Merge branch 'symbolfactory'