hadoopcompatibility: Cleaning and usage of open function.