Refactoring to conform to standard python usage
Refactoring fl.py into the new layout