Moved all the fiber allocation code into a stand alone python source file