Python code to work with Linux Systems