wrapped os.basename call to splitext call