Changed fabric.py into proper object oriented