append it to a list, perform the previous for every dir_ in fixture_dirs, substitute the resulting list for fixture_dirs. call the method os.path.basename with an argument fixture_name, substitute the result for fixture_name.
fixture_name = os . path . basename ( fixture_name )