on windowspipes are opened in binary file mode thusif you are reading text output from subprocessline endings will include the extra carriage return character ('\ \ninstead of '\ 'if this is concernsupply the universal_newlines option to popen( the subprocess module can not be used to control processes that expect to be running in terminal or tty the most common example is any program that expects user to enter password (such as sshftpsvnand so onto control these programslook for third-party modules based on the popular "expectunix utility time the time module provides various time-related functions in pythontime is measured as the number of seconds since the epoch the epoch is the beginning of time (the point at which time secondsthe epoch is january on unix and can be determined by calling time gmtime( on other systems the following variables are definedaccept dyear boolean value that indicates whether two-digit years are accepted normally this is truebut it' set to false if the environment variable $pythony is set to nonempty string the value can be changed manually as well altzone the time zone used during daylight saving time (dst)if applicable daylight is set to nonzero value if dst time zone has been defined timezone the local (non-dsttime zone tzname tuple containing the name of the local time zone and the name of the local daylight saving time zone (if definedthe following functions can be usedasctime([tuple]converts tuple representing time as returned by gmtime(or localtime(to string of the form 'mon jul : : if no arguments are suppliedthe current time is used clock(returns the current cpu time in seconds as floating-point number ctime([secs]converts time expressed in seconds since the epoch to string representing local time ctime(secsis the same as asctime(localtime(secs)if secs is omitted or nonethe current time is used lib fl ff