FreeBSD compatibility (in python scripts)