removed filename attributes

The file is now non optional and renamed to file_handle, because file is
a buildin literal.