add io tests in runall, update log test, add newline in lines test
add fcntl module
use pysec's fcntl and unistd, fix xlines(), add FO_WRITETR flag, add open flags's name, replace open functions with flags dict