Cleaned up code for PEP8 compliance and added option for unknown OS.