Implemented the missing functions in the sys module