fix:ImportError: No module named fcntl

fcntl module may not be available in some app engine.