completed passing python objects into functions to ease testing