Extension to os module