file size in python and ruby