Fixed wrong syntax of 'try'. sleep() is not in os!