[python] How to check whether a file is empty or not?