Python Create Object From Variable Frequency