python lib: fixed error message print
perl lib: added large file support