Switched sync_file_range for msync
Added python stat() function