fix bug in calculate_methylation_level_and_serialize, add overwrite argument to function feature_table_to_bed